import validate from '../../../utils/validation'

// 校验规则
const SCHEMA = {
  type: 'object',
  required: ['id'],
  properties: {
    id: {
      type: 'string',
    },
  },
}
/**
 * 获取检验函数
 * @param data
 * @returns
 */
function validation(data = {}) {
  return validate(SCHEMA, data)
}
export default validation
